package account.service.template;

import account.common.MobilePhoneNumber;
import account.common.RealName;

import javax.validation.ValidationException;
import java.time.LocalDate;

public class StudentAccountTemplate {

    private final RealName realName;

    private final LocalDate dob;

    private final MobilePhoneNumber primaryMobilePhoneNumber;

    public StudentAccountTemplate(RealName realName, LocalDate dob, MobilePhoneNumber primaryMobilePhoneNumber) throws ValidationException {
        this.realName = realName;
        this.dob = dob;
        this.primaryMobilePhoneNumber = primaryMobilePhoneNumber;
    }

    public String getRealName() {
        return realName.asPlainText();
    }

    public LocalDate getDob() {
        return dob;
    }

    public String getPrimaryMobilePhoneNumber() {
        return primaryMobilePhoneNumber.asPlainText();
    }

}
